<?php

class Newsletter extends AppModel {

  public $name = 'Newsletter';
  public $validate = array(
      'title' => array(
          'rule' => 'notEmpty',
          'message' => 'Title is required'
      ),
      'newsletter_date' => array(
          'formatRule' => array(
              'rule' => array('validDateFormat'),
              'allowEmpty' => false,
              'message' => 'Enter a valid date (mm/dd/yyyy)'
          )
     )

      /*,
      'file_path' => array(
          'rule' => 'notEmpty',
          'message' => 'Document is required',
          'required'=>true
      )*/
  );
}

?>
